package com.hjq.fcloud.widget

import android.content.Context
import android.util.AttributeSet
import android.view.ViewGroup
import android.widget.RelativeLayout
import com.hjq.fcloud.R
import com.hjq.widget.layout.SettingBar
import kotlinx.android.synthetic.main.layout_verical_input_view.view.commonInPutView
import kotlinx.android.synthetic.main.layout_verical_input_view.view.settingBar

/**
 * 垂直文本输入框 view
 */
class VerticalInputView : RelativeLayout {
    constructor(context: Context?) : this(context, null)
    constructor(context: Context?, attrs: AttributeSet?) : this(context, attrs, 0)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    ) {
        inflateView(attrs)
    }


    private fun inflateView(attrs: AttributeSet?) {
        inflate(context, R.layout.layout_verical_input_view, this)
    }

    fun getSettingBar(): SettingBar {
        return settingBar
    }

    fun getCommonInPutView(): CommonInPutView {
        return commonInPutView
    }

}